package com.jia.ribbon;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 1038940655
 * @create 2021/1/21 10:20
 */

@Configuration
public class MyRibbonRule {


    @Bean
    public IRule myRule(){
        return new RandomRule();
    }
}
